package model

type NodeInfo struct {
	CPU    string // CPU型号
	OS     string // 宿主机版本
	Cores  int    // 核心数
	Arch   string // 节点指令集架构
	Kernel string // 内核版本
}

type Statistics struct {
	CPUPercent      float32 // cpu百分比
	MemoryPercent   float32 //内存使用百分比
	MemoryAvailable uint64  // 可用内存，单位字节
	UpTime          uint32  // 系统开机时间
	Load1           float32 //1分钟负载
	Load5           float32 //5分钟负载
	Lode15          float32 // 15分钟负载
	NetStat         map[string]NetStatistics
	DiskStat        map[string]DiskStatistics
}

type NetStatistics struct {
	BytesSent      uint64
	BytesRecv      uint64
	BytesSentDelta uint64
	BytesRecvDelta uint64
}

type DiskStatistics struct {
	BytesReadDelta  uint64
	BytesWriteDelta uint64
	IOPercent       float32
}

type StatisticsSettings struct {
	Interval int
}
